package la.iok.hzsvn.lewin.movie.core.movieservice.vo;

import la.iok.hzsvn.share.collection.IdAble;

public class MovieLevelVo implements IdAble<Long> {
    /**
     * 启用假期价格常量
     */
    public static final Integer HOLIDAY_ENABLED = 1;
    /**
     * 不启用假期价格常量
     */
    public static final Integer HOLIDAY_DISABLED = 0;
    private Long id;
    private String name;
    /**
     * 价格,单位:分
     */
    private Integer price;
    /**
     * 开放价格。店铺开指定类型的剧本的时候，玩家需要支付的剧本费,单位:分
     */
    private Integer openPrice;
    /**
     * 当前的价格。由开放价格增加假期浮动价格(20元)来确定。如果当前是假期就增加浮动价格，如果不是假期则与开放价格一样
     */
    private Integer todayPrice;
    /**
     * 版本
     */
    private Long version;
    /**
     * 是否支持返利。默认为1，表示支持。如果不支持,则在计算返利的时候,这种类型的剧本开本次数不计算在内,也不计算对应的费用
     */
    private Integer returnMoneySupport;
    /**
     * 是否启用假期价格。如果启用假期价格则在开放价格的基础上增加20元，同时需要开放价格大于0（等于0即使启用假期价格也无效果）。1:启用，0：不启用。默认为1
     */
    private Integer enableHolidayPrice;

    @Override
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getOpenPrice() {
        return openPrice;
    }

    public void setOpenPrice(Integer openPrice) {
        this.openPrice = openPrice;
    }

    public Integer getTodayPrice() {
        return todayPrice;
    }

    public void setTodayPrice(Integer todayPrice) {
        this.todayPrice = todayPrice;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public Integer getReturnMoneySupport() {
        return returnMoneySupport;
    }

    public void setReturnMoneySupport(Integer returnMoneySupport) {
        this.returnMoneySupport = returnMoneySupport;
    }

    public Integer getEnableHolidayPrice() {
        return enableHolidayPrice;
    }

    public void setEnableHolidayPrice(Integer enableHolidayPrice) {
        this.enableHolidayPrice = enableHolidayPrice;
    }

    /**
     * 是否启用假期价格
     * @return 启用返回true否则false
     */
    public boolean holidayEnabled(){
        return HOLIDAY_ENABLED.equals(enableHolidayPrice);
    }
}
